home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / GRAHAM / XAAES_S.ZIP / XAAES / LIB / XAAESLIB.H < prev   
Encoding:
C/C++ Source or Header  |  1996-02-05  |  1.1 KB  |  54 lines

  1. /*
  2.     XaAES Extended Call Interface Library
  3. */
  4.  
  5. #include "XAAESLIB.H"
  6.  
  7. static short global[15];
  8. static short intin[300];
  9. static short intout[300];
  10. static void *addrin[300];
  11. static void *addrout[300];
  12.  
  13. AESPB pb={NULL,global,intin,intout,addrin,addrout};
  14.  
  15. const short CT_evnt_multi[]={25,16,7,1,0};
  16.  
  17. /*
  18.     Non-blocking evnt_multi call.
  19. */
  20. short XAevnt_multi(short events, short bclicks, short bmask, short bstate,
  21.                     short m1flag, short m1x, short m1y, short m1w, short m1h, 
  22.                     short m2flag, short m2x, short m2y, short m2w, short m2h, 
  23.                     short *msg, short lo_count, short hi_count, short *mx, short *my, 
  24.                     short *ks, short *kc, short *mc)
  25. {
  26.     pb.contrl=CT_evnt_multi;
  27. /*    pb.intin=intin;
  28.     pb.intout=intout;
  29.     pb.addrin=addrin;
  30.     pb.addrout=addrout;*/
  31.     intin[0]=events;
  32.     intin[1]=bclicks;
  33.     intin[2]=bmask;
  34.     intin[3]=bstate;
  35.     intin[4]=m1flag;
  36.     intin[5]=m1x;
  37.     intin[6]=m1y;
  38.     intin[7]=m1w;
  39.     intin[8]=m1h;
  40.     intin[9]=m2flag;
  41.     intin[10]=m2x;
  42.     intin[11]=m2y;
  43.     intin[12]=m2w;
  44.     intin[13]=m2h;
  45.     intin[14]=lo_count;
  46.     intin[15]=hi_count;
  47.     
  48.     addrin[0]=msg;
  49.     
  50.     call_aes(AESCMD_NOBLOCK,&pb);
  51.     
  52.     return 0;
  53. }
  54.